package com.tang.mapper;

import com.tang.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author tmh
 * @date 2022/12/3 15:43
 * @description
 */
@Mapper
@Repository
public interface BlogMapper {
    /**
     * 根据id查询blog
     * @param dbid
     * @return
     */
    Blog selectById(@Param("dbid") Integer dbid);

    List<Blog> getList();

}
